$('.beijing').click(function(){
	$('.shoujiandiqu ul').css('display','block');
})
$('.shoujiandiqu ul li').click(function(){
	$('.shoujiandiqu ul').css('display','none');
})

/*城市名字*/
var arr=[
	[{'id':'0','name':'燕郊'},{'shun':'1','shou':'12','xu':'1'},{'san':'1','shou':'8','xu':'2'},{'you':'1','shou':'7','xu':'2'}],
	[{'id':'1','name':'北京'},{'shun':'1','shou':'14','xu':'2'},{'san':'1','shou':'9','xu':'3'},{'you':'1','shou':'8','xu':'3'}],
	[{'id':'2','name':'上海'},{'shun':'2','shou':'18','xu':'5'},{'san':'2','shou':'12','xu':'6'},{'you':'3','shou':'10','xu':'4'}],
	[{'id':'3','name':'天津'},{'shun':'1','shou':'15','xu':'3'},{'san':'2','shou':'10','xu':'3'},{'you':'2','shou':'8','xu':'3'}],
	[{'id':'4','name':'重庆'},{'shun':'2','shou':'18','xu':'6'},{'san':'3','shou':'15','xu':'7'},{'you':'4','shou':'11','xu':'5'}],
	[{'id':'5','name':'河北'},{'shun':'2','shou':'14','xu':'2'},{'san':'2','shou':'11','xu':'3'},{'you':'2','shou':'8','xu':'3'}],
	[{'id':'6','name':'吉林'},{'shun':'2','shou':'18','xu':'5'},{'san':'3','shou':'13','xu':'6'},{'you':'3','shou':'11','xu':'5'}],
	[{'id':'7','name':'黑龙江'},{'shun':'2','shou':'18','xu':'5'},{'san':'3','shou':'13','xu':'6'},{'you':'3','shou':'11','xu':'5'}],
	[{'id':'8','name':'内蒙古'},{'shun':'2','shou':'12','xu':'5'},{'san':'2','shou':'12','xu':'6'},{'you':'3','shou':'12','xu':'6'}],
	[{'id':'9','name':'安徽'},{'shun':'2','shou':'18','xu':'5'},{'san':'2','shou':'12','xu':'6'},{'you':'3','shou':'10','xu':'4'}],
	[{'id':'10','name':'江苏'},{'shun':'2','shou':'18','xu':'5'},{'san':'2','shou':'12','xu':'6'},{'you':'3','shou':'10','xu':'4'}],
	[{'id':'11','name':'浙江'},{'shun':'2','shou':'18','xu':'5'},{'san':'2','shou':'12','xu':'6'},{'you':'3','shou':'10','xu':'4'}],
	[{'id':'12','name':'辽宁'},{'shun':'2','shou':'18','xu':'5'},{'san':'2','shou':'12','xu':'6'},{'you':'2','shou':'11','xu':'5'}],
	[{'id':'13','name':'山西'},{'shun':'2','shou':'18','xu':'5'},{'san':'2','shou':'12','xu':'6'},{'you':'2','shou':'11','xu':'5'}],
	[{'id':'14','name':'山东'},{'shun':'2','shou':'18','xu':'5'},{'san':'2','shou':'12','xu':'6'},{'you':'3','shou':'10','xu':'4'}],
	[{'id':'15','name':'河南'},{'shun':'2','shou':'18','xu':'5'},{'san':'2','shou':'12','xu':'6'},{'you':'3','shou':'10','xu':'4'}],
	[{'id':'16','name':'湖北'},{'shun':'2','shou':'18','xu':'5'},{'san':'2','shou':'12','xu':'6'},{'you':'3','shou':'10','xu':'4'}],
	[{'id':'17','name':'湖南'},{'shun':'2','shou':'18','xu':'5'},{'san':'3','shou':'12','xu':'6'},{'you':'3','shou':'10','xu':'4'}],
	[{'id':'18','name':'江西'},{'shun':'2','shou':'18','xu':'5'},{'san':'3','shou':'13','xu':'6'},{'you':'3','shou':'11','xu':'5'}],
	[{'id':'19','name':'广东'},{'shun':'2','shou':'18','xu':'7'},{'san':'3','shou':'12','xu':'6'},{'you':'3','shou':'11','xu':'5'}],
	[{'id':'20','name':'陕西'},{'shun':'2','shou':'18','xu':'5'},{'san':'2','shou':'13','xu':'6'},{'you':'3','shou':'11','xu':'5'}],
	[{'id':'21','name':'四川'},{'shun':'2','shou':'18','xu':'6'},{'san':'3','shou':'15','xu':'7'},{'you':'3','shou':'11','xu':'5'}],
	[{'id':'22','name':'福建'},{'shun':'2','shou':'18','xu':'5'},{'san':'3','shou':'13','xu':'6'},{'you':'3','shou':'11','xu':'5'}],
	[{'id':'23','name':'广西'},{'shun':'2','shou':'18','xu':'7'},{'san':'3','shou':'15','xu':'7'},{'you':'5','shou':'12','xu':'6'}],
	[{'id':'24','name':'云南'},{'shun':'2','shou':'18','xu':'7'},{'san':'3','shou':'15','xu':'7'},{'you':'5','shou':'12','xu':'6'}],
	[{'id':'25','name':'贵州'},{'shun':'2','shou':'18','xu':'6'},{'san':'3','shou':'15','xu':'7'},{'you':'3','shou':'12','xu':'6'}],
	[{'id':'26','name':'海南'},{'shun':'2','shou':'18','xu':'7'},{'san':'5','shou':'15','xu':'7'},{'you':'5','shou':'12','xu':'6'}],
	[{'id':'27','name':'甘肃'},{'shun':'2','shou':'18','xu':'5'},{'san':'3','shou':'15','xu':'7'},{'you':'4','shou':'12','xu':'6'}],
	[{'id':'28','name':'青海'},{'shun':'2','shou':'18','xu':'5'},{'san':'4','shou':'15','xu':'7'},{'you':'4','shou':'12','xu':'6'}],
	[{'id':'29','name':'宁夏'},{'shun':'2','shou':'18','xu':'5'},{'san':'3','shou':'15','xu':'7'},{'you':'3','shou':'12','xu':'6'}],
	[{'id':'30','name':'新疆'},{'shun':'3','shou':'20','xu':'10'},{'san':'4','shou':'20','xu':'10'},{'you':'6','shou':'20','xu':'10'}],
	[{'id':'31','name':'西藏'},{'shun':'3','shou':'26','xu':'21'},{'san':'5','shou':'22','xu':'18'},{'you':'7','shou':'20','xu':'15'}],
	[{'id':'32','name':'香港'},{'shun':'4','shou':'24','xu':'11'},{'san':'1','shou':'不发','xu':'不发'},{'you':'1','shou':'不发','xu':'不发'}],
	[{'id':'33','name':'澳门'},{'shun':'4','shou':'24','xu':'11'},{'san':'1','shou':'不发','xu':'不发'},{'you':'1','shou':'不发','xu':'不发'}],
	[{'id':'34','name':'台湾'},{'shun':'4','shou':'36','xu':'28'},{'san':'1','shou':'不发','xu':'不发'},{'you':'1','shou':'不发','xu':'不发'}]
];
/*城市名字*/
/*循环城市名字*/
/*for(var i=0;i<arr.length;i++){
 var newOp=('<option class="red" value='+i+'>'+arr[i][0].name+'</option>');
 $('#sele').append(newOp);
 }*/
/*$('#sele').click(function(){

 var shunfeng = [arr[$(this).val()][1]][0].shun;
 var santong = [arr[$(this).val()][2]][0].san;
 var yousu = [arr[$(this).val()][3]][0].you;
 // console.log(shunfeng);
 // console.log(santong);
 // console.log(yousu);
 $('.shunfeng span a').html(shunfeng).css('color','#14a4fb');
 $('.santong span a').html(santong).css('color','#14a4fb');
 $('.yousu span a').html(yousu).css('color','#14a4fb');
 })*/
/*循环城市名字*/

$('.shoujiandiqu ul li').each(function(index,item){
	$(item).click(function(){
		var csmz = arr[index][0].name;
		$('.beijing').html(csmz);
		$(".shoujiandiqu ul li").removeClass("custom_bg");
		$(this).addClass("custom_bg");
		var chengshi_index = index;
		$('.chengshi-index').val(chengshi_index);
		$('.shunfeng span a').html('--').css('color','#d4d4d4');
		$('.santong span a').html('--').css('color','#d4d4d4');
		$('.yousu span a').html('--').css('color','#d4d4d4');
	})
})
$('.anniu').click(function(){
	var csindex = $('.chengshi-index').val();
	console.log(csindex);
	var shunfeng = arr[csindex][1].shun;
	var santong = arr[csindex][2].san;
	var yousu = arr[csindex][3].you;
	console.log(yousu);
	$('.shunfeng span a').html(shunfeng).css('color','#14a4fb');
	$('.santong span a').html(santong).css('color','#14a4fb');
	$('.yousu span a').html(yousu).css('color','#14a4fb');
})